import {
    Home,
    Mall,
    Cart,
    Mine,
    Detail,
    NotFound
} from './pages';

const routes=[{
    path:'/home',
    title:'首页',
    icon:'&#xe630;',
    component:Home
},{
    path:'/mall',
    title:'商城',
    icon:'&#xe620;',
    component:Mall
},{
    path:'/cart',
    title:'购物车',
    requiredAuth:true,
    icon:'&#xe62b;',
    component:Cart
},{
    path:'/mine',
    title:'我的',
    icon:'&#xe62a;',
    component:Mine
},{
    path:'/detail/:id',
    component:Detail
},{
    path:'/404',
    component:NotFound
}];

export default routes;